<?php

include "config.php";
include "../lib/db.php";
include "../lib/tbatv_lib.php";

$tba = new tbatvController();

$match = new Match(11);
print_r($match);

$event = new Event(3);
print "<br />" . $event->getTeamCount() . " teams attending<br />";
print_r($event);

echo "<br />";

$all_matches = $event->getAllMatches();
foreach ($all_matches as $match) {
	print $match->getName();
	print $match->getTeams('red');
	print "<br />";
}

echo "<br />";

$all_teams = $event->getAllTeams();
print_r($all_teams);


print "<br />Team 177's 2007 record: ";
$team = new Team(177);
print $tba->stringWLT($team->getWLT('year', 2007));

?>